﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WarOfDev.EF;
using System.Data.Entity;

namespace WarOfDev.Services.DataDictionary
{
    public class DataDictionaryService
    {
        private readonly WarDevEntities db;

        public DataDictionaryService()
        {
            db = new WarDevEntities();
        }

        public IEnumerable<GroupItem> GetItemsByGroupId(string GroupId)
        {
            var ret = from item in db.GroupItems
                      where item.GroupId == GroupId
                      select item;

            return ret;       
        }


    }
}
